import Home from "../page/home";
import Person from "../page/person";
import PersonchangeInfo from "../page/person/personchangeInfo";
import Login from "../page/login";
import Register from "../page/register";
import Detail from "../page/news/detail";
import Start from "../page/start";
import NewsList from "../page/news/newsList";
import Novel from "../page/novel/page";
import Search from "../page/novel/page/search";
import NovelDetails from "../page/novel/page/novelDetails"
import Read from "../page/novel/page/read"
import ShopHome from "../page/shopCenter/index/index"
import City from "../page/shopCenter/city"
import ShopSearch from "../page/shopCenter/search"
import ShopDetails from "../page/shopCenter/shopDetails"
import Shoporder from '../page/shopCenter/order'
import ShopCates from '../page/shopCenter/cate'
import ShoppingCart from '../page/shopCenter/shoppingCart'
import Address from '../page/shopCenter/address'
import AddressSet from '../page/shopCenter/address/page/addressSet'
// eslint-disable-next-line
let routes = [
    {
        path: "/start", component: Start, meta: {
            title: "启动页",
            show: false
        }
    },
    {
        path: "/", component: Home, exact: true, auth: true, meta: {
            title: "首页",
            caches: true,
            footerShow: true
        }
    },
    {
        path: "/home", component: Home, exact: true, auth: true, meta: {
            title: "首页",
            caches: true,
            footerShow: true
        }
    },
    {
        path: "/shopHome", component: ShopHome, exact: true, auth: true, meta: {
            title: "商城",
            caches: true,
            footerShow: true
        }
    }, {
        path: "/city", component: City, exact: true, auth: true, meta: {
            title: "城市",
        }
    }, {
        path: "/shopSearch", component: ShopSearch, exact: true, auth: true, meta: {
            title: "搜索",
        }
    },
    {
        path: "/shopDetails/:id", component: ShopDetails, exact: true, auth: true, meta: {
            title: "详情",
        }
    },
    {
        path: "/shoporder", component: Shoporder, exact: true, auth: true, meta: {
            title: "详情",
        }
    },
    {
        path: "/shopCates", component: ShopCates, exact: true, auth: true, meta: {
            title: "分类",
        }
    },
    {
        path: "/shoppingCart", component: ShoppingCart, exact: true, auth: true, meta: {
            title: "购物车",
        }
    },
    {
        path: "/address", component: Address, exact: true, auth: true, meta: {
            title: "地址管理",
        }
    },
    {
        path: "/addressAdd", component: AddressSet, exact: true, auth: true, meta: {
            title: "地址管理",
        }
    },
    {
        path: "/addressEdit/:id", component: AddressSet, exact: true, auth: true, meta: {
            title: "地址管理",
        }
    },
    {
        path: "/newsList", component: NewsList, auth: true, exact: true, meta: {
            title: "新闻列表",
            caches: true,
            footerShow: true
        }
    },
    {
        path: "/novel", component: Novel, auth: true, exact: true, meta: {
            title: "小说首页",
            caches: true,
            footerShow: true
        }
    }, {
        path: "/novelSearch", component: Search, auth: true, exact: true, meta: {
            title: "搜索",
            caches: true
            // footerShow: true
        }
    }, {
        path: "/read/:id", component: Read, auth: true, exact: true, meta: {
            title: "书籍详情",
            // show: true,
            caches: true
            // footerShow: true
        }
    }, {
        path: "/novelDetails/:id", component: NovelDetails, auth: true, exact: true, meta: {
            title: "书籍详情",
            show: true,
            caches: true
            // footerShow: true
        }
    },
    {
        path: "/person", component: Person, auth: true, exact: true, meta: {
            title: "个人中心",
            caches: true,
            show: false,
            footerShow: true
        },
    },
    {
        path: "/personchangeInfo", component: PersonchangeInfo, auth: true, exact: true, meta: {
            title: "上传图片",
            caches: true,
            show: true,
            footerShow: false
        },
    },
    {
        path: "/detail/:id/:type", auth: true,
        component: Detail, meta: {
            title: "详情",
            show: true,
            footerShow: true
        }
    },
    {
        path: "/login", component: Login, meta: {
            title: "登录",
            show: false
        }
    },
    {
        path: "/register", component: Register, meta: {
            title: "注册",
            show: true
        }
    }
];
export default routes;